package top.gokzzz.mock.entity;

import top.gokzzz.log.annotation.DomainLog;
import top.gokzzz.log.listener.SysDomainLogListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "POSITION")
@DomainLog
@EntityListeners(SysDomainLogListener.class)
public class Position implements Serializable {
    private static final long serialVersionUID = 5837118467941699242L;

    @Id
    @Column(name = "ID", length = 36)
    private String id;

    @Column(name = "CODE")
    private String code;

    @Column(name = "NAME")
    private String name;

    @Column(name = "ORDER1")
    private Integer order;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }
}
